﻿#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    Py_Initialize();
    if (!Py_IsInitialized()){
        qDebug() << u8"Python没有初始化成功";
    }
    PyRun_SimpleString("import sys");
    PyRun_SimpleString("sys.path.add")
    PyObject *py_object_ = PyImport_ImportModule("/res/python/getAdd");
    if (!py_object_){
        qDebug() << u8"初始化Python脚本失败";
    }


}

MainWindow::~MainWindow()
{
    delete ui;
}

